import Vue from "vue";
import VueRouter from "vue-router";

import viewHome from "../views/home.vue";
import viewVoca from "../views/voca.vue";

Vue.use(VueRouter);

export const routes = [
	{
		path: "/",
		name: "home",
		component: viewHome,
		meta: {
			name: "Veros",
			icon: "home"
		}
	},
	{
		path: "/vocabulary",
		name: "vocabulary",
		component: viewVoca,
		meta: {
			name: "Serothes",
			icon: "assignment"
		}
	},
];

const router = new VueRouter({
	mode: "hash",
	routes,
});

export default router;
